Lecture Notes: Distribution Sweeping

نویسنده

  • Yufei Tao
چکیده

The skyline problem can be easily solved in linear I/Os in 2D space, after sorting the points of P by x-coordinate (think: how). We will show that the 3D version of the problem can also be settled in O(NB logM/B N B ) I/Os. Our description below follows that of [3]. Algorithm. Our algorithm accepts as input a dataset P whose points are sorted by x-coordinate. If N ≤ M (i.e., the memory capacity), we simply find the skyline of P using a memory-resident algorithm. The I/O cost incurred is O(N/B). Now consider N > M . We divide P into s = Θ(M/B) partitions P (1), ..., P (s) with the same size ⌈N/s⌉ (except perhaps one partition), such that each point in P (i) has a smaller x-coordinate than all points in P (j) for any 1 ≤ i < j ≤ s. As P is already sorted on the x-dimension, the partitioning can be done in linear cost, while leaving the points of each P (i) sorted in the same way. The next step is to obtain the skyline Σ(i) of each P (i), i.e., Σ(i) = SKY (P (i)). Since this is identical to solving the original problem (only on a smaller dataset), we recursively invoke our algorithm on P (i). Now consider the moment when all Σ(i) have been returned from recursion. Our algorithm proceeds by performing a skyline merge, which finds the skyline of the union of all Σ(i), that is, SKY (Σ(1) ∪ ... ∪ Σ(s)), which is exactly SKY (P ). We enforce an invariant that, SKY (P ) be returned in an array where the points are sorted in ascending order of y-coordinate (to be used by the upper level of recursion, if any). Due to recursion, the invariant implies that, the same ordering has been applied to all the Σ(i) at hand.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Factors affecting students tendency of Univercity students to Lecture Notes

Introduction: Many studies detected factors contributing to the students&rsquo; tendency to lecture notes. This study aimed at evaluating the factors affecting students tendency to lecture notes in Hormozgan University of Medical Sciences. Methods: In this descriptive study, 179 students from medicine, nursing & midwifery, health, and Paramedicine schools were selected through stratified random...

متن کامل

Notes for Math 450 Lecture Notes 3

We introduce some of the standard parameters associated to a random variable. The two most common are the expected value and the variance. These are special cases of moments of a probability distribution. Before defining these quantities, it may be helpful to recall some basic concepts associated to random variables.

متن کامل

Rare Events and Heavy Tails in Stochastic Systems

This is a set of lecture notes on large deviations and heavy tails in stochastic systems. After an introduction, a short and biased review on heavy-tailed distribution is given. Applications are mostly concerned with stochastic networks, and cover single-server queues, regenerative processes, and fluid models.

متن کامل

Smartphones and Our Students:A Case of Undergraduate Students in an EFL Context

Immoderate smart phone usage usually makes the students addicted to it and spends less time reading lecture notes and textbooks. This study aims to determine university students' usage of smart phones and perceived rejection of paper books in an EFL context. The study collected data through a 20-item structured questionnaire consisting of the general characteristics, the number and hours of gen...

متن کامل

Math 117 Lecture Notes

This is the set of lecture notes for Math 117 during Fall quarter of 2017 at UC Santa Barbara. The lectures follow closely the textbook [1].

متن کامل

Lecture Notes Optimization I

copies of these lecture notes intact and for as long as the lecture note copies are not for any commercial purpose.

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2014